package com.xinyue.game.common;

import java.nio.charset.StandardCharsets;

import org.springframework.util.Base64Utils;
import org.testng.annotations.Test;

/**
 * @author 王广帅
 * @since 2023/6/6 21:24
 **/
public class NacosSecret {

    private String nacosSecret = "98564sfrtgdfghtyudasdfgefgdefdes";

    @Test
    public void createSecret() {
        byte[] data = nacosSecret.getBytes(StandardCharsets.UTF_8);
        System.out.println(Base64Utils.encodeToString(data));
        
    }
}
